
<!DOCTYPE html>
<?php error_reporting(0);
ini_set('display_errors', false);?>

<?php
    require_once './config/config.php';
    require_once './model/courses.php';
    require_once './model/users.php';
    
    $obj_c = new Courses();
    $courses = $obj_c->select();
    
    $obj_u = new Users();
    $users = $obj_u->select();
    var_dump($courses);
    var_dump($users);
    die();
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="txt/html; charset=utf-8" />
        <title>Title goes here</title>
        <meta name="description" content="Description of your site goes here">
        <meta name="keywords" content="keyword1, keyword2, keyword3">
        <link href="css/style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <div class="wrapper">
            <div class="left-gap1"><img src="images/spacer.gif" alt="#" border="0"
                                        height="1" width="6"></div>
            <div class="main">
                <?php include_once './header.php'; ?>
                <div class="mid">
                    <?php include_once './sidebar.php'; ?>
                    <div class="content">
                       
                        <table>
                        <?php foreach($courses as $course): ?>
                            <tr>
                                <td><?php echo $course['name'] ?></td>
                            </tr>
                        <?php endforeach;?>
                        </table>
                    </div>
                </div>
                <?php include_once './footer.php'; ?>
            </div>
            <div class="right-gap1"><img src="images/spacer.gif" alt="#" border="0"
                                         height="1" width="6"></div>
        </div>

        <br>

    </body>
</html>